<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>注册界面</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
  </head>
  
  <body>
  <table align="center" width="500" border="1" cellpadding="2" cellpadding="0">
  <body style="background-image:url(F:\eclipse JEE work space\Foperation\WebContent\img\5.jpg)"/>
     <caption align="center"><h2>请填写注册信息</h2></caption>
<form action="registerAction" method="post">
<s:textfield type="text" label="用户名" name="user" ></s:textfield>
<s:textfield type="text" label="邮箱" name="email" align="right" ></s:textfield>
<s:textfield type="text" label="电话" name="phone" align="right" ></s:textfield>
<s:textfield type="password" label="密码" name="password"  ></s:textfield>
<s:textfield type="password" label="确认密码" name="repassword" ></s:textfield>
<th>类型:</th>
    <td>
<select name="type">
<option>请选择</option>
<option value="teacher" >教师</option>
<option value="student" >学生</option>
<option value="parents" >家长</option>
</select>
    </td>
<tr>
    <td colspan="2" align="center">
     <!-- <input type="submit" name="register" value="注册">   
    <input type="reset"  name="reset" value="重置"> -->
    
    <s:submit value="注册" name="register"></s:submit>
    </td>
</tr> 
</form>
</table>
  </body>
</html>
